package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.Appointment;
import com.ruoyi.app.mapper.AppointmentMapper;
import com.ruoyi.app.service.AppointmentService;
import com.ruoyi.common.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 75460
* @description 针对表【appointment(预约挂号表)】的数据库操作Service实现
* @createDate 2025-05-18 20:43:03
*/
@Service
public class AppointmentServiceImpl implements AppointmentService {
    @Autowired
    private AppointmentMapper appointmentMapper;
    @Override
    public boolean saveAppointment(Appointment appointment) {
        return appointmentMapper.saveAppointment(appointment);
    }

    @Override
    public List<Appointment> list(Integer status) {
        return appointmentMapper.list(status);
    }

    @Override
    public Appointment getUpdateById(Long id) {
        return appointmentMapper.getUpdateById(id);
    }

    @Override
    public void updateAppointment(Appointment appointment) {
        appointmentMapper.updateAppointment(appointment);
    }


}




